
#ifndef __PTHREAD_H
#define __PTHREAD_H

#include <iostream>
//
#include <opencv2/core/core.hpp> 
#include <opencv2/highgui/highgui.hpp> 
#include <opencv2/opencv.hpp> 
#include <opencv2/imgproc/imgproc.hpp> 
//

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/time.h>
//#include <sys/shm.h>
//#include <sys/wait.h>

using namespace std;
using namespace cv;

#define PTHREAD_NUM  3

extern pthread_t thread[PTHREAD_NUM];
extern pthread_mutex_t mut;


int thread_Init(void);
void thread_create(void);
void thread_wait(void);

void *transmit_server(void *ptr);
void *recv_server(void *ptr);
void *uart_recv(void *ptr);


#endif



